package com.quick.develop.flowable.domain.vo.task;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @author junyuan.liu
 * @description: TODO
 * @date 2022/4/28 10:55
 */
@ApiModel("流程管理后台 - 不通过流程任务的 Request VO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BpmTaskRejectReqVO implements Serializable {

    private static final long serialVersionUID = -1413984957555229727L;

    @ApiModelProperty(value = "任务编号", required = true, example = "1024")
    @NotEmpty(message = "任务编号不能为空")
    private String taskId;

    @ApiModelProperty(value = "节点集合", notes = "适用于多个节点需要回退的")
    private List<String> sourceKeyList;

    @ApiModelProperty(value = "目标节点",required = true, notes = "退回到的目标节点")
    @NotEmpty(message = "退回目标节点")
    private String targetKey;

    @ApiModelProperty(value = "审批意见", required = true, example = "不同意！")
    @NotEmpty(message = "退回意见不能为空")
    private String comment;


}
